<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class  MY_Controller  extends  CI_Controller  {

    public $model_word;
    public $model_word_image;
    public $model_topic;
    
    function __construct()  {
        
        parent::__construct();
        $this->load->helper('url');
        $this->load->model('database_factory');
        $this->load->database();
        $this->model_word=$this->database_factory->create_model_word();
        $this->model_word_image=$this->database_factory->create_model_word_image();
        $this->model_topic=$this->database_factory->create_model_topic();
        
    }
    
    function load_view($str_viewname,$data=null){
        $data['base_url']=base_url();
        $this->load->view('shared/header',$data);
        $this->load->view($str_viewname,$data);
        $this->load->view('shared/footer');
    }
    
}